package com.czapl.game3;

import com.czapl.client.CommunicationProtos.AddressBook;
import com.czapl.client.CommunicationProtos.Person;
import com.czapl.game3.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Button;
import com.czapl.game3.R;

public class Menu extends Activity{
	   @Override
	    public void onCreate(Bundle savedInstanceState) {
	      super.onCreate(savedInstanceState);
	      
	    requestWindowFeature(Window.FEATURE_NO_TITLE);
		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, 
		                        WindowManager.LayoutParams.FLAG_FULLSCREEN);

	        
	      setContentView(R.layout.activity_menu);
	      ((Button)findViewById(R.id.button_login)).setOnClickListener(new OnClickListener() {

	          @Override
	          public void onClick(View v) {
	        	  Person.Builder person = Person.newBuilder();

	        	  Intent intent = new Intent(Menu.this, MainActivity.class);
	        	  startActivity(intent);
	          }
	      });
	     
	   }
}
